package com.zuxia.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zuxia.dto.ShopDto;
import com.zuxia.dto.ShopReleaseDto;
import com.zuxia.entity.PageDto;
import com.zuxia.entity.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author laoli
 * @since 2024-11-14
 */
@Mapper
public interface ShopMapper extends BaseMapper<Shop> {
    @Select("${sql}")
    IPage<ShopDto> getShopListPage(Page<?> page,@Param("sql") String sql);

    @Select("${sql}")
    ShopDto getShopById(@Param("sql") String sql);

    @Select("${sql}")
    IPage<ShopReleaseDto> getShopReleaseListPage(Page<?> page,@Param("sql") String sql);

    @Select("${sql}")
    ShopReleaseDto getShopReleaseById(@Param("sql") String sql);
}
